cmake_minimum_required(VERSION 2.8)
project(DifferentTimeouts)

# Set VS2010 as the target compiler
set(CMAKE_GENERATOR "Visual Studio 10 2010")

# Windows specific settings
if(WIN32)
    # Enable Unicode character set
    add_definitions(-DUNICODE -D_UNICODE)
    # Add windows.h dependencies
    set(PLATFORM_LIBS kernel32 user32)
endif()

# Create executable
add_executable(DifferentTimeouts main.cpp)

# Link Windows libraries
target_link_libraries(DifferentTimeouts ${PLATFORM_LIBS})
